Repository navigation
docs(adr): ADR-0094 notes that a revertCommit projector failure reaches the caller - #34138
Conversation
…es the caller The 2026-09-04 amendment says that on the recovery doors a projector failure is logged without reaching the caller. Since 568f214 both revertCommit limbs read the projector's answer: the item is reported in failed[] and the revert answers success: false. Add-only notes record that: on the status line, beside the sentence in the 2026-09-04 amendment, and under D2's 2026-09-04 note. The sentence still holds for rollbackMetaItem, which awaits the projector and does not read its answer, and no projectionApplied key was added. No existing text is rewritten or moved. Claude-Session: https://claude.ai/code/session_01ADHkmT7hSxSj6X3GqfXJCn Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv Contract reviewServed-tier: Inputs read: card #34077 (body, comments 6899578419, 6901236133, os-dev report 6901622878); PR #33805 as merged ( Check-runs on this head (46): no failure. Still running when read: ① Derived judgments
② Semver levelDocs-only: one file under ③ Boundary flags
④ Design judgmentThe change holds against the code it cites (① 1 to 7) and against the card's scenario: a reader of the 2026-09-04 sentence is now told, in place, what changed, for which limbs, since which PR, and what did not change. The form matches ADR-0094's own Status entry of 2026-10-14 ( Findings:
No must-fix. One should-fix (S-1). Implemented-by: VERDICT: PASS |
… notes on the status line The 2026-09-04 amendment's table shows a dash under "Outcome on the response" for both revertCommit rows. A note below the table says what the dash means there now: no projectionApplied key, while a projector failure is reported through the item's failed[] entry and success: false. The rollbackMetaItem row is unchanged in meaning. No table cell is touched. The status-line entry this branch added now names where its notes sit: under D2, below the amendment's table and in its projectionApplied bullet. Only text this branch added is changed; the record's earlier text is byte-identical. Claude-Session: https://claude.ai/code/session_01ADHkmT7hSxSj6X3GqfXJCn Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv Contract reviewServed-tier: Delta record on round 1 (head Inputs read: the diff Check-runs on this head (46): no failure. Still running when read: ① Derived judgments
② Semver levelUnchanged: docs-only, ③ Boundary flags
④ Design judgmentThe table note is the right form: same Findings: S-1 closed. N-1 closed. N-2 closed. O-1 carried by #34142. No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv 维护者速读
席位核对Verdict: ACCEPT, held for the maintainer · head
|
Requested by Steve · project thread
Fixes #34077
Clause-②: no
Metadata-protocol: none
维护者速读
revertCommit)时投影器失败,该条目会进failed[],整体回success: false,调用方能看到;ADR 还写着「不报给调用方」,读者会被误导。按版本回滚(rollbackMetaItem)没变,仍然只记日志,原句对它照旧成立。docs/adr/0094-sys-permission-set-pure-projection.md的四处新增:第 3 行状态行末尾、第 130–135 行(D2 注记内)、第 575–580 行(修订表格正下方)、第 599–609 行(9 月 4 日修订的projectionApplied一条下)。git diff --word-diff origin/main...HEAD -- docs/adr/0094-sys-permission-set-pure-projection.md,预期只有{+…+}新增,没有[-…-]删除。What changes
ADR-0094's 2026-09-04 amendment says, verbatim: "
rollbackMetaItemand bothrevertCommitlimbs declare no such key on their response types and #14982 deliberately added none: there the projector is called and awaited, and a failure is logged without reaching the caller."Premise, read on
main(385ea1cc),packages/metadata-protocol/src/protocol-package-commits.ts:revertCommit, soft-remove limb and restore limb: each reads the projector's answer, and asuccess: falsemarks the item's step as not applied; an item with any such step settles intofailed[](row state named, the projector's own error text left on the log line) instead ofreverted[], and the revert answerssuccess: false. Landed by PR fix(metadata-protocol): revertCommit answers only what it achieved, and a revert is revertible #33805 (568f214a6c), the sibling fix of PR docs(adr): ADR-0067 records the revert doors after #33805 #34063. Pinned byprotocol.revert-commit-honest-outcome.test.ts("the projector failing on the restore limb…", "…on the soft-remove limb…").rollbackMetaItem: stillawait host.runMutationProjector({...})with the answer discarded, thensuccess: true. The 2026-09-04 sentence is kept for it and the notes say so.projectionAppliedkey was added to either response type, so the first half of the sentence still holds; only "logged without reaching the caller" is stale, and only for the tworevertCommitlimbs.Four add-only insertions in
docs/adr/0094-sys-permission-set-pure-projection.md; no existing character is removed or rewritten, no sentence moves:**Status**:line:· **Amended** (2026-11-15, #34077): …appended in the form of the line's existing 2026-10-14 entry, narrowed to therevertCommitlimbs, citing PR fix(metadata-protocol): revertCommit answers only what it achieved, and a revert is revertible #33805.⚠️ **Amended 2026-11-15 (#34077 / PR #33805)**pointer indented under the 2026-09-04 bullet, right after the quoted sentence, anchored atpackages/metadata-protocol/src/protocol-package-commits.ts#revertCommit.—in the tworevertCommitrows now means only that the answer carries noprojectionAppliedkey, and that a projector failure there is reported throughfailed[]andsuccess: false; therollbackMetaItemrow is unchanged. No table cell is touched. (N-2: the Status entry, text this PR adds, now names where the notes sit.)docs/adr/README.mdis not regenerated:adr-indexreports it current (the 0094 row's status cell truncates before the appended text).Tests
None: docs-only diff, no code, no test.
skip-changeset(docs/adr/**publishes nothing).Acceptance notes
dispatch-gates --tier: MANDATORY fordocs/adr/**), effort xhigh, on this branch; this thread is served below that tier. Recorded here and in the report's deviations.git grep -c "this.runMutationProjector(" -- protocol.tsno longer answers 7 (the seven call sites moved to the protocol facet files) #34142 (serial after this card): its tripwiregit grep -c "this.runMutationProjector(" -- packages/metadata-protocol/src/protocol.tsno longer answers7, because the call sites moved into facet files (protocol-save.ts,protocol-history-and-publish.ts,protocol-diff-delete-load.ts,protocol-package-commits.ts). The amendment itself says that answer means the table went stale. Not touched here.Verification
Head
bd358f52(fix round 1 on top of2cc431b3).dispatch-gates --commandsderives the same 21 commands; all 21 re-run on this head, all exit 0;--ranreconciles: "21 derived famil(ies) accounted for — 21 run, 0 NOT-MEASURED (a DERIVED zero …)". The round on2cc431b3was also 21/21 exit 0.Gate record at bd358f5 (21 commands)
Add-only proof against
main:git diff --word-diffshows 0[-…-]runs over main's text (the line-3 word-diff inside the fix commit touches only text this PR added); stripping the four insertions reproduces the base file byte for byte.git diff --checkclean; no control bytes.